# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=slick-greeter
pkgver=2.0.3
pkgrel=1
pkgdesc="a slick-looking LightDM greeter"
url="https://github.com/linuxmint/slick-greeter"
# s390x: mainframe
arch="all !s390x"
license="GPL-3.0-only"
makedepends="automake autoconf intltool libtool libcanberra-dev lightdm-dev vala xapp-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/linuxmint/slick-greeter/archive/refs/tags/$pkgver.tar.gz
	get-rid-of-gnome-common.patch
	"
options="!check" # No tests

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
db6424e68f547d95fb67c835a8e2a842232cadf92fbded7a329c9e4ed8fd9588ee0914c92a7f11b97d28859e3a8ef2885b6b4cea73214d5693074397edbb7279  slick-greeter-2.0.3.tar.gz
1060172686538ad92f58abb7be80cdc99a6fd914e16700c4ea4d95a99abf09f82a05181961961732adce1d505787f93aa73d744e12c8e019e084fef5b28f8081  get-rid-of-gnome-common.patch
"
